<?php
/**
 * 网站配置信息
 */
	namespace Admin\Controller;
	use Admin\Controller;
	class WebConfigController extends AuthController{
		protected $db;
		public function _initialize(){
			$this->db=M('webconfig');
		}
		public function index(){

			$this->display();
		}
		public function updateConfig(){
			if(IS_POST){
				foreach ($_POST as $name => $value) {
					$data["value"]=$value;
					if($this->db->where("name=$name")->save($data)){

					}
				}
				
			}
		}
	}


?>